<template>
  <div>
    <a-row :gutter="[16, 16]">
      <a-col :span="12">
        <a-form-model-item label="间歇性跛行试验" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.claudicationTest">
            <a-radio :value="1"> 阳性 </a-radio>
            <a-radio :value="2"> 阴性 </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>
      <a-col :span="12">
        <a-form-model-item label="颈动脉听诊" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.carotidAuscultation">
            <a-radio :value="1"> 有杂音 </a-radio>
            <a-radio :value="2"> 无杂音 </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>
    </a-row>

    <a-row :gutter="[16, 16]">
      <a-col :span="12">
        <a-form-model-item label="股动脉听诊" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.femoralAuscultation">
            <a-radio :value="1"> 有杂音 </a-radio>
            <a-radio :value="2"> 无杂音 </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>

      <a-col :span="12">
        <a-form-model-item label="下肢皮肤温度测定" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.legsSkinTemp">
            <a-radio :value="1"> 正常 </a-radio>
            <a-radio :value="2"> 异常 </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>
    </a-row>

    <a-row :gutter="[16, 16]">
      <a-col :span="12">
        <a-form-model-item label="神经传导功能" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.nerveConduction">
            <a-radio :value="1"> 正常 </a-radio>
            <a-radio :value="2"> 异常 </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>

      <a-col :span="12"> </a-col>
    </a-row>

    <a-row :gutter="[16, 16]">
      <a-col :span="12">
        <a-form-model-item label="ABI" :labelCol="{ span: 8 }">
          <a-input-number style="width: 170px" v-model="physical.abi" type="number" />
        </a-form-model-item>
      </a-col>

      <a-col :span="12">
        <a-form-model-item label="ABI运动负荷试验" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.abiExerciseTest">
            <a-radio :value="1"> &lt;=0.9 </a-radio>
            <a-radio :value="2"> 0.9&lt;ABI&lt;=1.3 </a-radio>
            <a-radio :value="3"> &gt;1.3 </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>
    </a-row>

    <a-row :gutter="[16, 16]">
      <a-col :span="12">
        <a-form-model-item label="TBI" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.tbi">
            <a-radio :value="1"> &lt;0.6 </a-radio>
            <a-radio :value="2"> &gt;=0.6</a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>

      <a-col :span="12">
        <a-form-model-item label="经皮氧分压(tcPO2)" :labelCol="{ span: 8 }">
          <a-radio-group v-model="physical.tcpo2">
            <a-radio :value="1"> &lt;30mmHg </a-radio>
            <a-radio :value="2"> &gt;=30mmHg </a-radio>
          </a-radio-group>
        </a-form-model-item>
      </a-col>
    </a-row>

    <!-- <a-divider orientation="left" :style="{ marginTop: '40px' }">上传体格检查报告单</a-divider>
    <a-form-model-item label="报告名称">
      <a-input v-model="physical.otherReportName" :max-length="20" :style="{ width: '300px' }" />
    </a-form-model-item>

    <a-form-model-item label="报告结论">
      <a-textarea
        :maxLength="500"
        v-model="physical.otherReportContent"
        placeholder=""
        :auto-size="{ minRows: 7, maxRows: 10 }"
        :style="{ width: '300px' }"
      />
      <div
        v-if="physical.otherReportContent != null && physical.otherReportContent.length > 0"
        :style="{ display: 'inline-block', marginLeft: '1rem' }"
      >
        {{ physical.otherReportContent.length }}/500
      </div>
    </a-form-model-item>

    <a-form-model-item v-bind="tailFormItemLayout">
      <j-image-upload
        text="上传"
        v-model="physical.otherReportPhoto"
        :is-multiple="true"
        :style="{ marginTop: '1.5rem' }"
        :preview="true"
        :img-arr="
          Array.isArray(physical.otherReportPhoto)
            ? physical.otherReportPhoto
            : physical.otherReportPhoto
            ? physical.otherReportPhoto.split(',')
            : []
        "
      ></j-image-upload>
    </a-form-model-item> -->
  </div>
</template>

<script>
export default {
  name: 'OtherChecking',
  props: ['physical'],
  data() {
    return {
      tailFormItemLayout: {
        wrapperCol: {
          xs: {
            span: 24,
            offset: 0
          },
          sm: {
            span: 12,
            offset: 2
          }
        }
      }
    }
  },
  methods: {}
}
</script>

<style lang="less" scoped>
.ant-form-item {
  margin: 0;
}
</style>

